package com.cndw.kungfu.vo;

import com.cndw.kungfu.domain.Player;

public class PlayerVO {	
	/**
	 * 角色id
	 */
	private long playerId; 
	/**
	 * 角色名称
	 */
	private String playerName;
	/**
	 * 等级
	 */
	private int level;
	/**
	 * 经验
	 */
	private long exp;
	/**
	 * 徒弟经验池
	 */
	private long expPool;
	/**
	 * 当前经验上限
	 */
	private long expNeed;
	/**
	 * 银两
	 */
	private long asset;
	/**
	 * 金币
	 */
	private int gold;
	/**
	 * 绑定金币
	 */
	private int goldBing;
	/**
	 * 银票
	 */
	private int goldTicke;
	/**
	 * 性别
	 */	
	private int sex;	
	/**
	 * 职业id
	 */
	private int vocationId;
	
	/**
	 * 血量
	 */
	private int hp;	
	/**
	 * 魔法 
	 */
	private int mp;
	/**
	 * 最大血
	 */
	private int maxHp;//
	/**
	 * 最大魔法		
	 */
	private int maxMp;//
	/**
	 * 力量
	 */
	private int power;//
	/**
	 * 体力
	 */
	private int physical;//
	/**
	 * 敏捷
	 */
	private int agile;//
	/**
	 * 精神 智力
	 */
	private int wit;//
	/**
	 * 攻击最小值
	 */
	private int attack;
	/**
	 * 防御值
	 */
	private int defense;
	/**
	 * 命中值
	 */
	private int hit;
	/**
	 * 闪避值
	 */
	private int dodge;
	/**
	 * 暴击值
	 */
	private int crit;
	/**
	 * 攻速
	 */
	private int attackSpeed;
	/**
	 * 韧性
	 */
	private int tough;
	

	/**
	 * 伤害追加
	 */
	private int hurtAdd;
	/**
	 * 伤害减免
	 */
	private int hurtRemove;
	/**
	 * 伤害反射
	 */
	private int hurtReflex;
	/**
	 * 伤害吸收
	 */
	private int hurtAbsorb;
	/**
	 * 暴击追加
	 */
	private int critAdd;
	/**
	 * 当前场景
	 */
	private int sceneId;
	private int x = 0;	
	private int y = 0;
	/**
	 * 帮派id
	 */
	private int unionId;
	/**
	 * 装备栏
	 */
	private String dress;
	/**
	 * 行走信息
	 */
	private int tx;
	private int ty;
	private int score;
	/**
	 * 血包
	 */
	private int bloodBag;
	/**
	 * 魔法包
	 */
	private int magicBag;
	private int knightLevel;
	private int knightExpired;
	/**
	 * 角色狀態
	 */
	private int state;
	
	public PlayerVO(){
		
	}
	
	public PlayerVO(Player player){
		init(player);
		gold = player.getGold();
		goldBing = player.getGoldBing();
		goldTicke = player.getGoldTicke();
	}	
	public PlayerVO(Player player,boolean noGold){
		init(player);
	}	
	private void init(Player player){
		playerId = player.getPlayerId();
		playerName = player.getPlayerName();
		level = player.getLevel();
		exp = player.getExp();
		expNeed = player.getExpNeed();
		asset = player.getAsset();
		sex = player.getSex();
		vocationId = player.getVocationId();
		hp = player.getHp();
		mp = player.getMp();
		maxHp = player.getMaxHp();//最大体力
		maxMp = player.getMaxMp();//最大魔法	
		sceneId = player.getSceneId();
		x = player.getX();
		y = player.getY();
		unionId = player.getUnionId();
		dress = player.getDress();
		tx = player.getTx();
		ty = player.getTy();
		power = player.getPower();
		physical = player.getPhysical();
		agile = player.getAgile();//敏捷
		wit = player.getWit();//精神 智力	
		
		attack = player.getAttack();//物理攻击			
		defense = player.getDefense();
		hit = player.getHit();
		dodge = player.getDodge();
		crit = player.getCrit();
		attackSpeed = player.getAttackSpeed();	
		score = player.getScore();
		tough = player.getTough();
		
		hurtAdd = player.getHurtAdd();
		hurtRemove = player.getHurtRemove();
		hurtReflex = player.getHurtReflex();
		hurtAbsorb = player.getHurtAbsorb();
		critAdd = player.getCritAdd();

		bloodBag = player.getBloodBag();
		magicBag = player.getMagicBag();
		
		knightLevel = player.getKnightLevel();
		knightExpired = player.getKnightExpired();
		
		expPool = player.getExpPool();
		state = player.getState();
	}
	public long getPlayerId() {
		return playerId;
	}
	public void setPlayerId(long playerId) {
		this.playerId = playerId;
	}
	public String getPlayerName() {
		return playerName;
	}
	public void setPlayerName(String playerName) {
		this.playerName = playerName;
	}
	public int getLevel() {
		return level;
	}
	public void setLevel(int level) {
		this.level = level;
	}
	public long getExp() {
		return exp;
	}
	public void setExp(long exp) {
		this.exp = exp;
	}
	public long getExpNeed() {
		return expNeed;
	}
	public void setExpNeed(long expNeed) {
		this.expNeed = expNeed;
	}
	public long getAsset() {
		return asset;
	}
	public void setAsset(long asset) {
		this.asset = asset;
	}
	public int getGold() {
		return gold;
	}
	public void setGold(int gold) {
		this.gold = gold;
	}
	public int getGoldTicke() {
		return goldTicke;
	}
	public void setGoldTicke(int goldTicke) {
		this.goldTicke = goldTicke;
	}
	public int getSex() {
		return sex;
	}
	public void setSex(int sex) {
		this.sex = sex;
	}
	public int getVocationId() {
		return vocationId;
	}
	public void setVocationId(int vocationId) {
		this.vocationId = vocationId;
	}
	public int getHp() {
		return hp;
	}
	public void setHp(int hp) {
		this.hp = hp;
	}
	public int getMp() {
		return mp;
	}
	public void setMp(int mp) {
		this.mp = mp;
	}
	public int getMaxHp() {
		return maxHp;
	}
	public void setMaxHp(int maxHp) {
		this.maxHp = maxHp;
	}
	public int getMaxMp() {
		return maxMp;
	}
	public void setMaxMp(int maxMp) {
		this.maxMp = maxMp;
	}
	public int getPower() {
		return power;
	}
	public void setPower(int power) {
		this.power = power;
	}
	public int getPhysical() {
		return physical;
	}
	public void setPhysical(int physical) {
		this.physical = physical;
	}
	public int getAgile() {
		return agile;
	}
	public void setAgile(int agile) {
		this.agile = agile;
	}
	public int getWit() {
		return wit;
	}
	public void setWit(int wit) {
		this.wit = wit;
	}
	public int getAttack() {
		return attack;
	}
	public void setAttack(int attack) {
		this.attack = attack;
	}
	public int getDefense() {
		return defense;
	}
	public void setDefense(int defense) {
		this.defense = defense;
	}
	public int getHit() {
		return hit;
	}
	public void setHit(int hit) {
		this.hit = hit;
	}
	public int getDodge() {
		return dodge;
	}
	public void setDodge(int dodge) {
		this.dodge = dodge;
	}
	public int getCrit() {
		return crit;
	}
	public void setCrit(int crit) {
		this.crit = crit;
	}
	public int getAttackSpeed() {
		return attackSpeed;
	}
	public void setAttackSpeed(int attackSpeed) {
		this.attackSpeed = attackSpeed;
	}
	public int getTough() {
		return tough;
	}
	public void setTough(int tough) {
		this.tough = tough;
	}
	public int getHurtAdd() {
		return hurtAdd;
	}
	public void setHurtAdd(int hurtAdd) {
		this.hurtAdd = hurtAdd;
	}
	public int getHurtRemove() {
		return hurtRemove;
	}
	public void setHurtRemove(int hurtRemove) {
		this.hurtRemove = hurtRemove;
	}
	public int getHurtReflex() {
		return hurtReflex;
	}
	public void setHurtReflex(int hurtReflex) {
		this.hurtReflex = hurtReflex;
	}
	public int getHurtAbsorb() {
		return hurtAbsorb;
	}
	public void setHurtAbsorb(int hurtAbsorb) {
		this.hurtAbsorb = hurtAbsorb;
	}
	public int getCritAdd() {
		return critAdd;
	}
	public void setCritAdd(int critAdd) {
		this.critAdd = critAdd;
	}
	
	public int getState() {
		return state;
	}
	public void setState(int state) {
		this.state = state;
	}
	public int getSceneId() {
		return sceneId;
	}
	public void setSceneId(int sceneId) {
		this.sceneId = sceneId;
	}
	public int getX() {
		return x;
	}
	public void setX(int x) {
		this.x = x;
	}
	public int getY() {
		return y;
	}
	public void setY(int y) {
		this.y = y;
	}
	public int getUnionId() {
		return unionId;
	}
	public void setUnionId(int unionId) {
		this.unionId = unionId;
	}
	public String getDress() {
		return dress;
	}
	public void setDress(String dress) {
		this.dress = dress;
	}
	public int getTx() {
		return tx;
	}
	public void setTx(int tx) {
		this.tx = tx;
	}
	public int getTy() {
		return ty;
	}
	public void setTy(int ty) {
		this.ty = ty;
	}
	public int getScore() {
		return score;
	}
	public void setScore(int score) {
		this.score = score;
	}
	public int getBloodBag() {
		return bloodBag;
	}
	public void setBloodBag(int bloodBag) {
		this.bloodBag = bloodBag;
	}
	public int getMagicBag() {
		return magicBag;
	}
	public void setMagicBag(int magicBag) {
		this.magicBag = magicBag;
	}
	public int getKnightLevel() {
		return knightLevel;
	}
	public void setKnightLevel(int knightLevel) {
		this.knightLevel = knightLevel;
	}
	public int getKnightExpired() {
		return knightExpired;
	}
	public void setKnightExpired(int knightExpired) {
		this.knightExpired = knightExpired;
	}
	public long getExpPool() {
		return expPool;
	}
	public void setExpPool(long expPool) {
		this.expPool = expPool;
	}

	public int getGoldBing() {
		return goldBing;
	}

	public void setGoldBing(int goldBing) {
		this.goldBing = goldBing;
	}
	
	
	
}
